package com.fix.util;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.text.MessageFormat;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.fix.model.Data;
import com.fix.model.Guide;
import com.fix.model.Result;
import com.fix.model.Line;
import com.fix.model.Media;
import com.fix.model.Response;
import com.fix.model.Step;
import com.fix.model.Translated;
import com.google.gson.Gson;

public class FixClientController {
	/**
	 * Logger for this class
	 */
	private static final Log LOGGER = LogFactory.getLog(FixClientController.class);

	private static final String ENCODE = "UTF-8";
	private static final String DEFAULT_COUNTRY = "59";
	private static final String PREACTIVE_STATUS = "1";
	private static final String PROTOCOL = "https";
	private static final String SERVICE_IFIX_SEARCH = PROTOCOL + "://www.ifixit.com/api/2.0/search/{0}";
	private static final String SERVICE_IFIX_GUIDE = "https://www.ifixit.com/api/2.0/guides/GUIDEID";
	private static final String SERVICE_YANDEX_URL = PROTOCOL + "://translate.yandex.net/api/v1.5/tr.json/translate";
	private static final String YANDEX_KEY = "trnsl.1.1.20140519T195207Z.2ac5004d4418efcc.6717c72e96acceca9712fb94d35b846bce385b70";
	private static final String GET_METHOD = "GET";
	private static final String DEFAULT_CONTENT_TYPE = "application/x-www-form-urlencoded";
	private static final String DEFAULT_CONTENT_LANG = "eng-US";
	public static final String  LOG_PROPERTIES_FILE = "/conf/fix_log.conf";
	
	public static final Map<String, String> ERROR_LIST = new TreeMap<String, String>();

	private static HttpRequest request;
	private static HttpCommand httpCommand;

	public FixClientController() {
		
		if(request==null){
			request = new HttpRequest();
			request.setRequestMethod(GET_METHOD);
			request.setContentType(DEFAULT_CONTENT_TYPE);
			request.setContentLanguage(DEFAULT_CONTENT_LANG);
		}
		
		if(httpCommand==null){
			httpCommand = new HttpCommand(request);
		}
		
		if (ERROR_LIST != null) {
			ERROR_LIST.put("errD1001", "Bad Domain specified");			
		}
	}

	
	public String search(String search) throws UnsupportedEncodingException {
		StringBuffer accountData = new StringBuffer();
		StringBuffer output = new StringBuffer();
		
		String toServer = null;
		
		httpCommand.getRequest().setUrl(MessageFormat.format(SERVICE_IFIX_SEARCH, new Object[]{search.replaceAll(" ", "%20")}));
		accountData.append("?filter=guide");
		accountData.append("&limit=200");
		
		toServer = accountData.toString();

		httpCommand.getRequest().setUrlParameters(toServer);
		
		System.out.println(httpCommand.getRequest().getUrl());
		
		try{
			httpCommand.postData();
		}catch(IOException e){
			output.append(e.getMessage());
			LOGGER.error(e.getMessage());
			return output.toString();
		}

		try {
			output.append(httpCommand.getRequest().getResponse().trim());
		} catch(Exception ex) {
			ex.printStackTrace();
			LOGGER.error(ex.getMessage());
		}
		
		return output.toString();
	}
	
	public String getGuide(int guideId) throws UnsupportedEncodingException {
		StringBuffer accountData = new StringBuffer();
		StringBuffer output = new StringBuffer();
		
		String toServer = null;
		
		httpCommand.getRequest().setUrl(SERVICE_IFIX_GUIDE.replace("GUIDEID", String.valueOf(guideId)));
	
		toServer = accountData.toString();

		httpCommand.getRequest().setUrlParameters(toServer);
		
		System.out.println(httpCommand.getRequest().getUrl());
		
		try{
			httpCommand.postData();
		}catch(IOException e){
			output.append(e.getMessage());
			LOGGER.error(e.getMessage());
			return output.toString();
		}

		try {
			output.append(httpCommand.getRequest().getResponse().trim());
		} catch(Exception ex) {
			ex.printStackTrace();
			LOGGER.error(ex.getMessage());
		}
		
		return output.toString();
	}
	
	
	public String translate(String word) throws UnsupportedEncodingException {		
		StringBuffer accountData = new StringBuffer();
		StringBuffer output = new StringBuffer();
		
		String toServer = null;
		
		httpCommand.getRequest().setUrl(SERVICE_YANDEX_URL);
		accountData.append("?key=" + YANDEX_KEY);
		accountData.append("&lang=en-es");
		accountData.append("&text=" + word.replaceAll(" ", "%20").replaceAll("\"", "%22"));
		
		toServer = accountData.toString();

		httpCommand.getRequest().setUrlParameters(toServer);
		
		System.out.println(httpCommand.getRequest().getUrl());
		
		try{
			httpCommand.postData();
		}catch(IOException e){
			output.append(e.getMessage());
			LOGGER.error(e.getMessage());
			return output.toString();
		}

		try {
			output.append(httpCommand.getRequest().getResponse().trim());
		} catch(Exception ex) {
			ex.printStackTrace();
			LOGGER.error(ex.getMessage());
		}
		
		return output.toString();
	}
	
	public static void main(String[] args) {
		FixClientController fixClientController = new FixClientController();
		try {
			
//			System.out.println(o);

			String o = null;
			
//			String big = "[{\"dataType\":\"guide\",\"guideid\":3567,\"locale\":\"en\",\"revisionid\":144446,\"modified_date\":1367615198,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Evo+4G%3A+Increasing+Battery+Life+%28Requires+Root%29/3567\",\"type\":\"technique\",\"category\":\"HTC Evo 4G\",\"subject\":\"\",\"title\":\"HTC Evo 4G: Increasing Battery Life (Requires Root)\",\"public\":true,\"userid\":229176,\"username\":\"Dmitriy Likhten\",\"flags\":[\"GUIDE_LOUSY_PICTURES\",\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":243399,\"guid\":\"6BLo3tJMEYKeIdod\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod\"}},{\"dataType\":\"guide\",\"guideid\":4106,\"locale\":\"en\",\"revisionid\":175366,\"modified_date\":1378339935,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+HD2+Android+Replacement/4106\",\"type\":\"replacement\",\"category\":\"HTC HD2\",\"subject\":\"Android\",\"title\":\"HTC HD2 Android Replacement\",\"public\":true,\"userid\":272293,\"username\":\"Rob Jackson\",\"flags\":[\"GUIDE_IN_PROGRESS\",\"GUIDE_MISSING_IMAGES\",\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":256591,\"guid\":\"uOSXgeOSPKRu3WEF\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.large\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF\"}},{\"dataType\":\"guide\",\"guideid\":5701,\"locale\":\"en\",\"revisionid\":207872,\"modified_date\":1390945390.76,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Battery+Replacement/5701\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA\",\"subject\":\"Battery\",\"title\":\"HTC Touch Pro CDMA Battery Replacement\",\"public\":true,\"userid\":319095,\"username\":\"Zhaowei Zhang\",\"flags\":[\"GUIDE_UNNECESSARY_STEPS\"],\"image\":{\"id\":104427,\"guid\":\"DVHcGZMdrxB5JtJL\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL\"}},{\"dataType\":\"guide\",\"guideid\":6341,\"locale\":\"en\",\"revisionid\":176184,\"modified_date\":1378340539,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Droid+Eris+Digitizer+or+LCD+screen+Replacement/6341\",\"type\":\"replacement\",\"category\":\"HTC Droid Eris\",\"subject\":\"Digitizer or LCD screen\",\"title\":\"HTC Droid Eris Digitizer or LCD screen Replacement\",\"public\":true,\"userid\":333202,\"username\":\"Liam\",\"flags\":[\"GUIDE_GRAMMAR_ERRORS\",\"GUIDE_INCORRECT_BULLETS\",\"GUIDE_INCORRECT_TOOLS\",\"GUIDE_MARKUP_PROBLEMS\",\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":122932,\"guid\":\"PkPPYcQHBCXwRR2i\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.large\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i\"}},{\"dataType\":\"guide\",\"guideid\":17695,\"locale\":\"en\",\"revisionid\":210691,\"modified_date\":1394652229.79,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+One+Camera+Lens+Glass+Replacement/17695\",\"type\":\"replacement\",\"category\":\"HTC One\",\"subject\":\"Camera Lens\",\"title\":\"HTC One Camera Lens Glass Replacement\",\"public\":true,\"userid\":686704,\"username\":\"alcs99\",\"flags\":[\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":280753,\"guid\":\"5JafSuNvMdnOkhI5\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5\"}},{\"dataType\":\"guide\",\"guideid\":2907,\"locale\":\"en\",\"revisionid\":31386,\"modified_date\":1274189456,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/Taking+out+the+simcard/2907\",\"type\":\"repair\",\"category\":\"HTC Magic\",\"subject\":\"Simcard\",\"title\":\"Taking out the simcard\",\"public\":true,\"userid\":85504,\"username\":\"LucasJV\",\"flags\":[\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":49894,\"guid\":\"ZEc4nBFrwQOHvJDh\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.large\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh\"}},{\"dataType\":\"guide\",\"guideid\":2910,\"locale\":\"en\",\"revisionid\":59701,\"modified_date\":1300326513,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/Repairing+HTC+Magic+Speaker/2910\",\"type\":\"repair\",\"category\":\"HTC Magic\",\"subject\":\"Speaker\",\"title\":\"Repairing HTC Magic Speaker\",\"public\":true,\"userid\":85504,\"username\":\"LucasJV\",\"flags\":[\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":50044,\"guid\":\"JAAAxT2Pw1MiMq3P\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.large\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P\"}},{\"dataType\":\"guide\",\"guideid\":3062,\"locale\":\"en\",\"revisionid\":167961,\"modified_date\":1375315999,\"prereq_modified_date\":1375316011,\"url\":\"http://www.ifixit.com/Guide/HTC+Evo+4G+Rear+Inner+Frame+Replacement/3062\",\"type\":\"replacement\",\"category\":\"HTC Evo 4G\",\"subject\":\"Rear Inner Frame\",\"title\":\"HTC Evo 4G Rear Inner Frame Replacement\",\"public\":true,\"userid\":18,\"username\":\"Walter Galan\",\"flags\":[],\"image\":{\"id\":56049,\"guid\":\"C5TGwDPwsllUSu3u\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u\"}},{\"dataType\":\"guide\",\"guideid\":3068,\"locale\":\"en\",\"revisionid\":177312,\"modified_date\":1378341128,\"prereq_modified_date\":1375316011,\"url\":\"http://www.ifixit.com/Guide/HTC+Evo+4G+Logic+Board+Replacement/3068\",\"type\":\"replacement\",\"category\":\"HTC Evo 4G\",\"subject\":\"Logic Board\",\"title\":\"HTC Evo 4G Logic Board Replacement\",\"public\":true,\"userid\":18,\"username\":\"Walter Galan\",\"flags\":[\"GUIDE_STARRED\"],\"image\":{\"id\":56050,\"guid\":\"qlrtNWvDrQaULt4D\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D\"}},{\"dataType\":\"guide\",\"guideid\":5172,\"locale\":\"en\",\"revisionid\":168075,\"modified_date\":1375316056,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/Upgrading+Belkin+Micro+Auto+Charger+USB+to+signal+1+amp+charging+current+to+HTC+Hero+and+other+devices/5172\",\"type\":\"replacement\",\"category\":\"Belkin Micro Auto Charger USB F8Z445\",\"subject\":\"Resistor to signal 1 amp power availability\",\"title\":\"Upgrading Belkin Micro Auto Charger USB to signal 1 amp charging current to HTC Hero and other devices\",\"public\":true,\"userid\":311504,\"username\":\"Mark\",\"flags\":[\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":97076,\"guid\":\"sQbZho2E6GorHMKe\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe\"}},{\"dataType\":\"guide\",\"guideid\":5269,\"locale\":\"en\",\"revisionid\":207762,\"modified_date\":1390945341.05,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+LCD+Screen+Replacement/5269\",\"type\":\"replacement\",\"category\":\"HTC Touch\",\"subject\":\"LCD Screen\",\"title\":\"HTC Touch LCD Screen Replacement\",\"public\":true,\"userid\":315842,\"username\":\"callum rowland\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":108595,\"guid\":\"V4CFZVCNCXoceRSG\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG\"}},{\"dataType\":\"guide\",\"guideid\":5476,\"locale\":\"en\",\"revisionid\":207763,\"modified_date\":1390945341.49,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Motherboard+Replacement/5476\",\"type\":\"replacement\",\"category\":\"HTC Touch\",\"subject\":\"Motherboard\",\"title\":\"HTC Touch Motherboard Replacement\",\"public\":true,\"userid\":315842,\"username\":\"callum rowland\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":108579,\"guid\":\"xmheXo5xvBHPispR\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR\"}},{\"dataType\":\"guide\",\"guideid\":5625,\"locale\":\"en\",\"revisionid\":207580,\"modified_date\":1390945259.49,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Verizon+Battery+Replacement/5625\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA Verizon\",\"subject\":\"Battery\",\"title\":\"HTC Touch Pro CDMA Verizon Battery Replacement\",\"public\":true,\"userid\":313530,\"username\":\"Jack Bowen\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":102547,\"guid\":\"dhd4W5V6TWQbIlGE\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE\"}},{\"dataType\":\"guide\",\"guideid\":5636,\"locale\":\"en\",\"revisionid\":207582,\"modified_date\":1390945260.46,\"prereq_modified_date\":1390945260.02,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Verizon+Camera+Replacement/5636\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA Verizon\",\"subject\":\"Camera\",\"title\":\"HTC Touch Pro CDMA Verizon Camera Replacement\",\"public\":true,\"userid\":313530,\"username\":\"Jack Bowen\",\"flags\":[],\"image\":{\"id\":102721,\"guid\":\"1T3DqVHFpCC4sORq\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq\"}},{\"dataType\":\"guide\",\"guideid\":5637,\"locale\":\"en\",\"revisionid\":207583,\"modified_date\":1390945260.89,\"prereq_modified_date\":1390945260.02,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Verizon+Keyboard+Replacement/5637\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA Verizon\",\"subject\":\"Keyboard\",\"title\":\"HTC Touch Pro CDMA Verizon Keyboard Replacement\",\"public\":true,\"userid\":313530,\"username\":\"Jack Bowen\",\"flags\":[\"GUIDE_MARKUP_PROBLEMS\"],\"image\":{\"id\":107036,\"guid\":\"IpP6iJPIZooYiIxD\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD\"}},{\"dataType\":\"guide\",\"guideid\":5638,\"locale\":\"en\",\"revisionid\":207584,\"modified_date\":1390945261.34,\"prereq_modified_date\":1390945260.89,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Verizon+Screen+Replacement/5638\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA Verizon\",\"subject\":\"Screen\",\"title\":\"HTC Touch Pro CDMA Verizon Screen Replacement\",\"public\":true,\"userid\":313530,\"username\":\"Jack Bowen\",\"flags\":[\"GUIDE_GRAMMAR_ERRORS\",\"GUIDE_IMPROPER_ACTION\",\"GUIDE_INCONSISTENT_IMAGES\",\"GUIDE_INCORRECT_BULLETS\",\"GUIDE_INCORRECT_TEXT\",\"GUIDE_INCORRECT_TOOLS\",\"GUIDE_LOUSY_PICTURES\",\"GUIDE_MARKUP_PROBLEMS\"],\"image\":{\"id\":102845,\"guid\":\"nIxbVXPFG1UEEFuZ\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ\"}},{\"dataType\":\"guide\",\"guideid\":5649,\"locale\":\"en\",\"revisionid\":207827,\"modified_date\":1390945370.36,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Speaker+Replacement/5649\",\"type\":\"replacement\",\"category\":\"HTC Touch\",\"subject\":\"Speaker\",\"title\":\"HTC Touch Speaker Replacement\",\"public\":true,\"userid\":314479,\"username\":\"Andrew Brooks\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":108587,\"guid\":\"SNkgYAHQfleD3Kb6\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6\"}},{\"dataType\":\"guide\",\"guideid\":5650,\"locale\":\"en\",\"revisionid\":207828,\"modified_date\":1390945370.78,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Front+Buttons+Replacement/5650\",\"type\":\"replacement\",\"category\":\"HTC Touch\",\"subject\":\"Front Buttons\",\"title\":\"HTC Touch Front Buttons Replacement\",\"public\":true,\"userid\":314479,\"username\":\"Andrew Brooks\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":108580,\"guid\":\"2yOF524Qhp5P2nEl\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl\"}},{\"dataType\":\"guide\",\"guideid\":5679,\"locale\":\"en\",\"revisionid\":207824,\"modified_date\":1390945369.12,\"prereq_modified_date\":1390945368.28,\"url\":\"http://www.ifixit.com/Guide/HTC+SMT+6175+Keyboard+Replacement/5679\",\"type\":\"replacement\",\"category\":\"HTC SMT 6175\",\"subject\":\"Keyboard\",\"title\":\"HTC SMT 6175 Keyboard Replacement\",\"public\":true,\"userid\":316998,\"username\":\"Luke Plewa\",\"flags\":[\"GUIDE_GRAMMAR_ERRORS\",\"GUIDE_INCORRECT_BULLETS\",\"GUIDE_INCORRECT_TOOLS\"],\"image\":{\"id\":103774,\"guid\":\"gpZNuipuSgd6TEkt\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt\"}},{\"dataType\":\"guide\",\"guideid\":5694,\"locale\":\"en\",\"revisionid\":207871,\"modified_date\":1390945390.35,\"prereq_modified_date\":1390945391.66,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Screen+Replacement/5694\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA\",\"subject\":\"Screen\",\"title\":\"HTC Touch Pro CDMA Screen Replacement\",\"public\":true,\"userid\":319095,\"username\":\"Zhaowei Zhang\",\"flags\":[\"GUIDE_GRAMMAR_ERRORS\",\"GUIDE_IMPROPER_ACTION\",\"GUIDE_INCORRECT_BULLETS\",\"GUIDE_INCORRECT_TEXT\",\"GUIDE_LOUSY_PICTURES\",\"GUIDE_UNNECESSARY_STEPS\"],\"image\":{\"id\":104257,\"guid\":\"l3X1vlnG4wIHuI4W\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W\"}}]";
//			String big = "{\"search\":\"htc\",\"limit\":20,\"offset\":0,\"totalResults\":170,\"moreResults\":true,\"results\":[{\"dataType\":\"guide\",\"guideid\":3567,\"locale\":\"en\",\"revisionid\":144446,\"modified_date\":1367615198,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Evo+4G%3A+Increasing+Battery+Life+%28Requires+Root%29/3567\",\"type\":\"technique\",\"category\":\"HTC Evo 4G\",\"subject\":\"\",\"title\":\"HTC Evo 4G: Increasing Battery Life (Requires Root)\",\"public\":true,\"userid\":229176,\"username\":\"Dmitriy Likhten\",\"flags\":[\"GUIDE_LOUSY_PICTURES\",\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":243399,\"guid\":\"6BLo3tJMEYKeIdod\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/6BLo3tJMEYKeIdod\"}},{\"dataType\":\"guide\",\"guideid\":4106,\"locale\":\"en\",\"revisionid\":175366,\"modified_date\":1378339935,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+HD2+Android+Replacement/4106\",\"type\":\"replacement\",\"category\":\"HTC HD2\",\"subject\":\"Android\",\"title\":\"HTC HD2 Android Replacement\",\"public\":true,\"userid\":272293,\"username\":\"Rob Jackson\",\"flags\":[\"GUIDE_IN_PROGRESS\",\"GUIDE_MISSING_IMAGES\",\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":256591,\"guid\":\"uOSXgeOSPKRu3WEF\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF.large\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/uOSXgeOSPKRu3WEF\"}},{\"dataType\":\"guide\",\"guideid\":5701,\"locale\":\"en\",\"revisionid\":207872,\"modified_date\":1390945390.76,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Battery+Replacement/5701\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA\",\"subject\":\"Battery\",\"title\":\"HTC Touch Pro CDMA Battery Replacement\",\"public\":true,\"userid\":319095,\"username\":\"Zhaowei Zhang\",\"flags\":[\"GUIDE_UNNECESSARY_STEPS\"],\"image\":{\"id\":104427,\"guid\":\"DVHcGZMdrxB5JtJL\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/DVHcGZMdrxB5JtJL\"}},{\"dataType\":\"guide\",\"guideid\":6341,\"locale\":\"en\",\"revisionid\":176184,\"modified_date\":1378340539,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Droid+Eris+Digitizer+or+LCD+screen+Replacement/6341\",\"type\":\"replacement\",\"category\":\"HTC Droid Eris\",\"subject\":\"Digitizer or LCD screen\",\"title\":\"HTC Droid Eris Digitizer or LCD screen Replacement\",\"public\":true,\"userid\":333202,\"username\":\"Liam\",\"flags\":[\"GUIDE_GRAMMAR_ERRORS\",\"GUIDE_INCORRECT_BULLETS\",\"GUIDE_INCORRECT_TOOLS\",\"GUIDE_MARKUP_PROBLEMS\",\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":122932,\"guid\":\"PkPPYcQHBCXwRR2i\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i.large\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/PkPPYcQHBCXwRR2i\"}},{\"dataType\":\"guide\",\"guideid\":17695,\"locale\":\"en\",\"revisionid\":210691,\"modified_date\":1394652229.79,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+One+Camera+Lens+Glass+Replacement/17695\",\"type\":\"replacement\",\"category\":\"HTC One\",\"subject\":\"Camera Lens\",\"title\":\"HTC One Camera Lens Glass Replacement\",\"public\":true,\"userid\":686704,\"username\":\"alcs99\",\"flags\":[\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":280753,\"guid\":\"5JafSuNvMdnOkhI5\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/5JafSuNvMdnOkhI5\"}},{\"dataType\":\"guide\",\"guideid\":2907,\"locale\":\"en\",\"revisionid\":31386,\"modified_date\":1274189456,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/Taking+out+the+simcard/2907\",\"type\":\"repair\",\"category\":\"HTC Magic\",\"subject\":\"Simcard\",\"title\":\"Taking out the simcard\",\"public\":true,\"userid\":85504,\"username\":\"LucasJV\",\"flags\":[\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":49894,\"guid\":\"ZEc4nBFrwQOHvJDh\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh.large\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/ZEc4nBFrwQOHvJDh\"}},{\"dataType\":\"guide\",\"guideid\":2910,\"locale\":\"en\",\"revisionid\":59701,\"modified_date\":1300326513,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/Repairing+HTC+Magic+Speaker/2910\",\"type\":\"repair\",\"category\":\"HTC Magic\",\"subject\":\"Speaker\",\"title\":\"Repairing HTC Magic Speaker\",\"public\":true,\"userid\":85504,\"username\":\"LucasJV\",\"flags\":[\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":50044,\"guid\":\"JAAAxT2Pw1MiMq3P\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P.large\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/JAAAxT2Pw1MiMq3P\"}},{\"dataType\":\"guide\",\"guideid\":3062,\"locale\":\"en\",\"revisionid\":167961,\"modified_date\":1375315999,\"prereq_modified_date\":1375316011,\"url\":\"http://www.ifixit.com/Guide/HTC+Evo+4G+Rear+Inner+Frame+Replacement/3062\",\"type\":\"replacement\",\"category\":\"HTC Evo 4G\",\"subject\":\"Rear Inner Frame\",\"title\":\"HTC Evo 4G Rear Inner Frame Replacement\",\"public\":true,\"userid\":18,\"username\":\"Walter Galan\",\"flags\":[],\"image\":{\"id\":56049,\"guid\":\"C5TGwDPwsllUSu3u\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/C5TGwDPwsllUSu3u\"}},{\"dataType\":\"guide\",\"guideid\":3068,\"locale\":\"en\",\"revisionid\":177312,\"modified_date\":1378341128,\"prereq_modified_date\":1375316011,\"url\":\"http://www.ifixit.com/Guide/HTC+Evo+4G+Logic+Board+Replacement/3068\",\"type\":\"replacement\",\"category\":\"HTC Evo 4G\",\"subject\":\"Logic Board\",\"title\":\"HTC Evo 4G Logic Board Replacement\",\"public\":true,\"userid\":18,\"username\":\"Walter Galan\",\"flags\":[\"GUIDE_STARRED\"],\"image\":{\"id\":56050,\"guid\":\"qlrtNWvDrQaULt4D\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/qlrtNWvDrQaULt4D\"}},{\"dataType\":\"guide\",\"guideid\":5172,\"locale\":\"en\",\"revisionid\":168075,\"modified_date\":1375316056,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/Upgrading+Belkin+Micro+Auto+Charger+USB+to+signal+1+amp+charging+current+to+HTC+Hero+and+other+devices/5172\",\"type\":\"replacement\",\"category\":\"Belkin Micro Auto Charger USB F8Z445\",\"subject\":\"Resistor to signal 1 amp power availability\",\"title\":\"Upgrading Belkin Micro Auto Charger USB to signal 1 amp charging current to HTC Hero and other devices\",\"public\":true,\"userid\":311504,\"username\":\"Mark\",\"flags\":[\"GUIDE_USER_CONTRIBUTED\"],\"image\":{\"id\":97076,\"guid\":\"sQbZho2E6GorHMKe\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/sQbZho2E6GorHMKe\"}},{\"dataType\":\"guide\",\"guideid\":5269,\"locale\":\"en\",\"revisionid\":207762,\"modified_date\":1390945341.05,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+LCD+Screen+Replacement/5269\",\"type\":\"replacement\",\"category\":\"HTC Touch\",\"subject\":\"LCD Screen\",\"title\":\"HTC Touch LCD Screen Replacement\",\"public\":true,\"userid\":315842,\"username\":\"callum rowland\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":108595,\"guid\":\"V4CFZVCNCXoceRSG\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/V4CFZVCNCXoceRSG\"}},{\"dataType\":\"guide\",\"guideid\":5476,\"locale\":\"en\",\"revisionid\":207763,\"modified_date\":1390945341.49,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Motherboard+Replacement/5476\",\"type\":\"replacement\",\"category\":\"HTC Touch\",\"subject\":\"Motherboard\",\"title\":\"HTC Touch Motherboard Replacement\",\"public\":true,\"userid\":315842,\"username\":\"callum rowland\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":108579,\"guid\":\"xmheXo5xvBHPispR\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/xmheXo5xvBHPispR\"}},{\"dataType\":\"guide\",\"guideid\":5625,\"locale\":\"en\",\"revisionid\":207580,\"modified_date\":1390945259.49,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Verizon+Battery+Replacement/5625\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA Verizon\",\"subject\":\"Battery\",\"title\":\"HTC Touch Pro CDMA Verizon Battery Replacement\",\"public\":true,\"userid\":313530,\"username\":\"Jack Bowen\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":102547,\"guid\":\"dhd4W5V6TWQbIlGE\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/dhd4W5V6TWQbIlGE\"}},{\"dataType\":\"guide\",\"guideid\":5636,\"locale\":\"en\",\"revisionid\":207582,\"modified_date\":1390945260.46,\"prereq_modified_date\":1390945260.02,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Verizon+Camera+Replacement/5636\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA Verizon\",\"subject\":\"Camera\",\"title\":\"HTC Touch Pro CDMA Verizon Camera Replacement\",\"public\":true,\"userid\":313530,\"username\":\"Jack Bowen\",\"flags\":[],\"image\":{\"id\":102721,\"guid\":\"1T3DqVHFpCC4sORq\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/1T3DqVHFpCC4sORq\"}},{\"dataType\":\"guide\",\"guideid\":5637,\"locale\":\"en\",\"revisionid\":207583,\"modified_date\":1390945260.89,\"prereq_modified_date\":1390945260.02,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Verizon+Keyboard+Replacement/5637\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA Verizon\",\"subject\":\"Keyboard\",\"title\":\"HTC Touch Pro CDMA Verizon Keyboard Replacement\",\"public\":true,\"userid\":313530,\"username\":\"Jack Bowen\",\"flags\":[\"GUIDE_MARKUP_PROBLEMS\"],\"image\":{\"id\":107036,\"guid\":\"IpP6iJPIZooYiIxD\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/IpP6iJPIZooYiIxD\"}},{\"dataType\":\"guide\",\"guideid\":5638,\"locale\":\"en\",\"revisionid\":207584,\"modified_date\":1390945261.34,\"prereq_modified_date\":1390945260.89,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Verizon+Screen+Replacement/5638\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA Verizon\",\"subject\":\"Screen\",\"title\":\"HTC Touch Pro CDMA Verizon Screen Replacement\",\"public\":true,\"userid\":313530,\"username\":\"Jack Bowen\",\"flags\":[\"GUIDE_GRAMMAR_ERRORS\",\"GUIDE_IMPROPER_ACTION\",\"GUIDE_INCONSISTENT_IMAGES\",\"GUIDE_INCORRECT_BULLETS\",\"GUIDE_INCORRECT_TEXT\",\"GUIDE_INCORRECT_TOOLS\",\"GUIDE_LOUSY_PICTURES\",\"GUIDE_MARKUP_PROBLEMS\"],\"image\":{\"id\":102845,\"guid\":\"nIxbVXPFG1UEEFuZ\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/nIxbVXPFG1UEEFuZ\"}},{\"dataType\":\"guide\",\"guideid\":5649,\"locale\":\"en\",\"revisionid\":207827,\"modified_date\":1390945370.36,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Speaker+Replacement/5649\",\"type\":\"replacement\",\"category\":\"HTC Touch\",\"subject\":\"Speaker\",\"title\":\"HTC Touch Speaker Replacement\",\"public\":true,\"userid\":314479,\"username\":\"Andrew Brooks\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":108587,\"guid\":\"SNkgYAHQfleD3Kb6\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/SNkgYAHQfleD3Kb6\"}},{\"dataType\":\"guide\",\"guideid\":5650,\"locale\":\"en\",\"revisionid\":207828,\"modified_date\":1390945370.78,\"prereq_modified_date\":0,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Front+Buttons+Replacement/5650\",\"type\":\"replacement\",\"category\":\"HTC Touch\",\"subject\":\"Front Buttons\",\"title\":\"HTC Touch Front Buttons Replacement\",\"public\":true,\"userid\":314479,\"username\":\"Andrew Brooks\",\"flags\":[\"GUIDE_INCORRECT_BULLETS\"],\"image\":{\"id\":108580,\"guid\":\"2yOF524Qhp5P2nEl\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/2yOF524Qhp5P2nEl\"}},{\"dataType\":\"guide\",\"guideid\":5679,\"locale\":\"en\",\"revisionid\":207824,\"modified_date\":1390945369.12,\"prereq_modified_date\":1390945368.28,\"url\":\"http://www.ifixit.com/Guide/HTC+SMT+6175+Keyboard+Replacement/5679\",\"type\":\"replacement\",\"category\":\"HTC SMT 6175\",\"subject\":\"Keyboard\",\"title\":\"HTC SMT 6175 Keyboard Replacement\",\"public\":true,\"userid\":316998,\"username\":\"Luke Plewa\",\"flags\":[\"GUIDE_GRAMMAR_ERRORS\",\"GUIDE_INCORRECT_BULLETS\",\"GUIDE_INCORRECT_TOOLS\"],\"image\":{\"id\":103774,\"guid\":\"gpZNuipuSgd6TEkt\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/gpZNuipuSgd6TEkt\"}},{\"dataType\":\"guide\",\"guideid\":5694,\"locale\":\"en\",\"revisionid\":207871,\"modified_date\":1390945390.35,\"prereq_modified_date\":1390945391.66,\"url\":\"http://www.ifixit.com/Guide/HTC+Touch+Pro+CDMA+Screen+Replacement/5694\",\"type\":\"replacement\",\"category\":\"HTC Touch Pro CDMA\",\"subject\":\"Screen\",\"title\":\"HTC Touch Pro CDMA Screen Replacement\",\"public\":true,\"userid\":319095,\"username\":\"Zhaowei Zhang\",\"flags\":[\"GUIDE_GRAMMAR_ERRORS\",\"GUIDE_IMPROPER_ACTION\",\"GUIDE_INCORRECT_BULLETS\",\"GUIDE_INCORRECT_TEXT\",\"GUIDE_LOUSY_PICTURES\",\"GUIDE_UNNECESSARY_STEPS\"],\"image\":{\"id\":104257,\"guid\":\"l3X1vlnG4wIHuI4W\",\"mini\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.mini\",\"thumbnail\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.thumbnail\",\"standard\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.standard\",\"medium\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.medium\",\"large\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.large\",\"huge\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W.huge\",\"original\":\"https://d3nevzfk7ii3be.cloudfront.net/igi/l3X1vlnG4wIHuI4W\"}}]}";
			
			Gson gson = new Gson();
//			Guide[] guides = gson.fromJson(big, Guide[].class);
//			for (int i = 0; i < guides.length; i++) {
//				System.out.println(guides[i].getTitle() + " " + guides[i].getGuideid() + " " + guides[i].getImage().getId());
//			}
			
			String big = fixClientController.search("iphone%205");
			Response response = gson.fromJson(big, Response.class);
			System.out.println("search: " + response.getSearch() + "  getTotalResults: " + response.getTotalResults());
			Result[] guides = response.getResults();
			for (int i = 0; i < guides.length; i++) {
				System.out.println(guides[i].getTitle() + " Guideid:" + guides[i].getGuideid() + " url:" + guides[i].getUrl());
				String g = fixClientController.getGuide(guides[i].getGuideid());
				Guide guide = gson.fromJson(g, Guide.class);
				System.out.println(guide.getTitle());
				Step[] steps = guide.getSteps();
				for (int j = 0; j < steps.length; j++) {
					System.out.println("Step # " + steps[j].getOrderby());
					Line[] lines = steps[j].getLines();
					for (int k = 0; k < lines.length; k++) {
						String text_raw = lines[k].getText_raw();
						String jsonfromyadex = fixClientController.translate(text_raw);
						Translated tr = gson.fromJson(jsonfromyadex, Translated.class);
						System.out.println("  " + lines[k].getLevel() + " " + tr.getText()[0] );
					}
					Media media = steps[j].getMedia();
					Data[] data = media.getData();
					for (int l = 0; l < data.length; l++) {
						System.out.println("image: " + data[l].getStandard());
					}
				}
			}
			
		
			
			//String text = "This is a tricky/potentially dangerous one. Be very careful not to delete the wrong thing. I can't stress this one enough.";
						
			//o = fixClientController.translate(text);
			//System.out.println(o);
		} catch (/*UnsupportedEncodingException*/ Exception e) {
			e.printStackTrace();
		}
		
	}
}
